home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
text
/
misc
/
fill.lha
/
Fill
/
Amiga.DOC
next >
Wrap
Text File
|
1993-01-21
|
2KB
|
53 lines
NAME
fill - a simple text formatter
SYNOPSIS
fill [[-b] [-j] | [-c]] [-d] [-r n] [-l n] [-p n]
fill ?
DESCRIPTION
Fill is a simple text formatter meant to be used from within your editor
to provide a functionality similar to the ^B command in WordStar. This
presumes your editor can pipe an object through a filter. In vi, you
would do something like "!}fill" to word wrap a paragraph. Of course,
you may, in the spirit of Unix, find other uses for it. For example,
Fill has the side-effect of de-tabifying lines passed to it.
The following options pertain:
-b box the output lines
-c center the lines
-d the text block has a delimiter on the left side
-j justify the right margin
-p n set paragraph indent value to "n"
-r n set right margin to column "n", defaults to 72
-l n set left margin to column "n", defaults to 1
The "-d" option is used to preserve a left hand delimiter on the text,
such as might be used on a comment block in a source file. It does this
by taking the first white-space delimited word in the input text and
replicating it down the left-hand side of the output text block. It
concurrently drops the first word on each line in its input.
The "-p" option is used to set a paragraph indent. The indent value
specified is added to the left margin for the first line of output.
Negative values may be used for hanging indents.
On the Amiga, "Fill ?" will print a usage message.
FEATURES
Fill has no practical limit on line lengths (except when centering).
BUGS
The justification algorithm is a little crude.
The delimited text option can be easily confused.
Abbreviations (eg. this one) get an extra space after them.
Fill makes no attempt to preserve existing indentations or blank lines
(this could be construed as a feature).
AUTHOR
Chad R. Larson
Ported to the Commodore Amiga by Daniel J. Barrett, barrett@cs.umass.edu
SEE ALSO
pr(1), nroff(1), troff(1) [On a UNIX machine.]
The file "README.Amiga." [On an Amiga.]